package com.shy.example.service.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "service-provider")
public interface ProviderFeignService {
    @GetMapping("echo/name")
    String name(@RequestParam("name") String name);

    @GetMapping("echo/timeout")
    String timeout();
}
